﻿using System;

namespace Nydus.WebForms.FrontendModel
{
    /// <summary>
    /// Specifies the type of presenter class used
    /// by a view implementation.
    /// </summary>
    [AttributeUsage(System.AttributeTargets.Class)]
    public class PresenterTypeAttribute : System.Attribute
    {
        /// <summary>
        /// Gets or sets the type of the presenter.
        /// </summary>
        public Type PresenterType { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="PresenterTypeAttribute"/> class.
        /// </summary>
        /// <param name="type">The type.</param>
        public PresenterTypeAttribute(Type type)
        {
            PresenterType = type;
        }
    }
}
